import FightAttri from './fightAttri';
import {
    totalConfig,
    propName
} from 'server/config/templateConfig';

let monstersConfig = totalConfig.monster;

class MonsterComponent {
    constructor(opts) {
        this.name = opts.name || '' //怪物名
        this.fightAttri = FightAttri.create(opts.fightAttri); //战斗属性
        this.fightAttri.hp = this.fightAttri.maxHp;
        this.fightAttri.currentShield = this.fightAttri.shield;
        this.fightAttri.name = this.name;
        this.fightAttri.templateId = this.templateId;
    }
}

export default MonsterComponent;